package com.jsbj.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jsbj.user.entities.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author jsbj
 * @since 2022-03-07
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> getRoleListByTenantCodeAndOrgCode(String tenantCode, String orgCode);

    SysRole queryRoleByEquId(String equId);

    List<SysRole> getRoleListByTenantCode(@Param("tenantCode") String tenantCode, @Param("userId") String userId);

    Map<String, Object> queryRoleByProSecUser(String proCode, String orgId, String uId);
}
